package org.example.design.observer.event.listener;

import org.example.design.observer.bean.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Classname MQEventListener
 * @Description MQ消息事件
 * @Date 2020/11/11 10:28 上午
 * @Created by xiangjd
 */
public class MQEventListener implements EventListener {

    private Logger logger = LoggerFactory.getLogger(MQEventListener.class);

    @Override
    public void doEvent(LotteryResult result) {
        logger.info("给用户 {} 发送短信通知(短信)：{}", result.getuId(), result.getMsg());
    }
}
